from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token

from users import views

urlpatterns = [
    # url(r"^usernames/(?P<username>\w{5, 20})/count/$", views.UserNameCheckAPIView.as_view())
    url(r"^usernames/(?P<username>\w{5,20})/count/$", views.UserNameCountAPIView.as_view()),
    url(r"^mobiles/(?P<mobile>1[3456789]\d{9})/count/$", views.MobileCountAPIView.as_view()),
    url(r"^users/$", views.UserAPIView.as_view()),
    url(r"^user/$", views.ListUserCentreInfo.as_view()),
    url(r"^email/$", views.SetEmailView.as_view()),
    url(r"^emails/verification/$", views.SetEmailView.as_view()),
    url(r'^authorizations/$', obtain_jwt_token),

]